package com.app.internationaltravel.controller;

import com.app.internationaltravel.service.intf.UserGoldService;
import com.app.internationaltravel.vo.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 刘豆豆
 * @date 2022/12/14
 */
@RestController
@RequestMapping("/api/UserGold/")
@Api(tags = "实现当前用户虚拟币的相关操作")
@CrossOrigin //跨域
public class UserGoldController {

  @Resource
  private UserGoldService service;

  @ApiOperation(value = "查询虚拟币变动信息",notes = "查询虚拟币变动信息")
  @PostMapping("Gold.do")
  public R queryGold(int uid){
    return service.queryGold(uid);
  }
}
